<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>shark::GeneralQuadraticProblem&lt; MatrixT &gt; Class Template Reference</title>
<script type="text/javaScript" src="search/search.js"></script>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3.0.1/es5/tex-mml-chtml.js"></script>
<script src="../../mlstyle.js"></script>
<link href="../css/besser.css" rel="stylesheet" type="text/css"/>
</head>
<!-- pretty cool: each body gets an id tag which is the basename of the web page  -->
<!--              and allows for page-specific CSS. this is client-side scripted, -->
<!--              so the id will not yet show up in the served source code -->
<script type="text/javascript">
    jQuery(document).ready(function () {
        var url = jQuery(location).attr('href');
        var pname = url.substr(url.lastIndexOf("/")+1, url.lastIndexOf(".")-url.lastIndexOf("/")-1);
        jQuery('#this_url').html('<strong>' + pname + '</strong>');
        jQuery('body').attr('id', pname);
    });
</script>
<body>
    <div id="shark_old">
        <div id="wrap">
            <div id="header">
                <div id="site-name"><a href="../../sphinx_pages/build/html/index.html">Shark machine learning library</a></div>
                <ul id="nav">
                    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/installation.html">Installation</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/tutorials/tutorials.html">Tutorials</a>
                    </li>
		    <li >
                        <a href="../../sphinx_pages/build/html/rest_sources/benchmark.html">Benchmarks</a>
                    </li>
                    <li class="active">
                        <a href="classes.html">Documentation</a>
                        <ul>
                            <li class="first"></li>
                            <li><a href="../../sphinx_pages/build/html/rest_sources/quickref/quickref.html">Quick references</a></li>
                            <li><a href="classes.html">Class list</a></li>
                            <li class="last"><a href="group__shark__globals.html">Global functions</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
<div id="doxywrapper">
<!--
    <div id="global_doxytitle">Doxygen<br>Documentation:</div>
-->
    <div id="navrow_wrapper">
<!-- Generated by Doxygen 1.9.8 -->
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceshark.html">shark</a></li><li class="navelem"><a class="el" href="classshark_1_1_general_quadratic_problem.html">GeneralQuadraticProblem</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="classshark_1_1_general_quadratic_problem-members.html">List of all members</a> &#124;
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle"><div class="title">shark::GeneralQuadraticProblem&lt; MatrixT &gt; Class Template Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Quadratic Problem with only Box-Constraints Let K the kernel matrix, than the problem has the form.  
 <a href="classshark_1_1_general_quadratic_problem.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_qp_solver_8h_source.html">shark/Algorithms/QP/QpSolver.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:adc77a7278f5f0f3352507ff106170222" id="r_adc77a7278f5f0f3352507ff106170222"><td class="memItemLeft" align="right" valign="top">typedef MatrixT&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a></td></tr>
<tr class="separator:adc77a7278f5f0f3352507ff106170222"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d39a65d53e312e8f6670bca88acfcdd" id="r_a4d39a65d53e312e8f6670bca88acfcdd"><td class="memItemLeft" align="right" valign="top">typedef MatrixType::QpFloatType&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a4d39a65d53e312e8f6670bca88acfcdd">QpFloatType</a></td></tr>
<tr class="separator:a4d39a65d53e312e8f6670bca88acfcdd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5fac3481c122b828c0fbdc1f0dd7ad58" id="r_a5fac3481c122b828c0fbdc1f0dd7ad58"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a5fac3481c122b828c0fbdc1f0dd7ad58">GeneralQuadraticProblem</a> (<a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a> &amp;<a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">quadratic</a>)</td></tr>
<tr class="separator:a5fac3481c122b828c0fbdc1f0dd7ad58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeeb68a46c6b9d19b029fba3b415e0c53" id="r_aeeb68a46c6b9d19b029fba3b415e0c53"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">GeneralQuadraticProblem</a> (<a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a> &amp;<a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">quadratic</a>, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;labels, <a class="el" href="classshark_1_1_data.html">Data</a>&lt; double &gt; const &amp;weights, RealVector const &amp;regularizers)</td></tr>
<tr class="memdesc:aeeb68a46c6b9d19b029fba3b415e0c53"><td class="mdescLeft">&#160;</td><td class="mdescRight">constructor which initializes a C-SVM problem with weighted datapoints and different regularizers for every class  <br /></td></tr>
<tr class="separator:aeeb68a46c6b9d19b029fba3b415e0c53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a170d8bc7b59295225e50ef670c93d12b" id="r_a170d8bc7b59295225e50ef670c93d12b"><td class="memItemLeft" align="right" valign="top">std::size_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a170d8bc7b59295225e50ef670c93d12b">dimensions</a> () const</td></tr>
<tr class="separator:a170d8bc7b59295225e50ef670c93d12b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05d69430848ddcad3356bc5721f89847" id="r_a05d69430848ddcad3356bc5721f89847"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">flipCoordinates</a> (std::size_t i, std::size_t j)</td></tr>
<tr class="memdesc:a05d69430848ddcad3356bc5721f89847"><td class="mdescLeft">&#160;</td><td class="mdescRight">exchange two variables via the permutation  <br /></td></tr>
<tr class="separator:a05d69430848ddcad3356bc5721f89847"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab443ebce2edcc29998fdc12ad1e59ea5" id="r_ab443ebce2edcc29998fdc12ad1e59ea5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#ab443ebce2edcc29998fdc12ad1e59ea5">scaleBoxConstraints</a> (double factor)</td></tr>
<tr class="memdesc:ab443ebce2edcc29998fdc12ad1e59ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Scales all box constraints by a constant factor and adapts the solution by scaling it by the same factor.  <br /></td></tr>
<tr class="separator:ab443ebce2edcc29998fdc12ad1e59ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:ab9f7c176af3174da94f5e3278da833ee" id="r_ab9f7c176af3174da94f5e3278da833ee"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">quadratic</a></td></tr>
<tr class="memdesc:ab9f7c176af3174da94f5e3278da833ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">representation of the quadratic part of the objective function  <br /></td></tr>
<tr class="separator:ab9f7c176af3174da94f5e3278da833ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6238469347dc713767559ec056bba357" id="r_a6238469347dc713767559ec056bba357"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a6238469347dc713767559ec056bba357">linear</a></td></tr>
<tr class="memdesc:a6238469347dc713767559ec056bba357"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear part of the problem.  <br /></td></tr>
<tr class="separator:a6238469347dc713767559ec056bba357"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23c9f698d8e9fe751120469495bf06dc" id="r_a23c9f698d8e9fe751120469495bf06dc"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a23c9f698d8e9fe751120469495bf06dc">alpha</a></td></tr>
<tr class="memdesc:a23c9f698d8e9fe751120469495bf06dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Solution candidate.  <br /></td></tr>
<tr class="separator:a23c9f698d8e9fe751120469495bf06dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1beb985520dc9f49db3408e22918fb03" id="r_a1beb985520dc9f49db3408e22918fb03"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a1beb985520dc9f49db3408e22918fb03">diagonal</a></td></tr>
<tr class="separator:a1beb985520dc9f49db3408e22918fb03"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6825de8bb886daad689839d3c7986713" id="r_a6825de8bb886daad689839d3c7986713"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::size_t &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a6825de8bb886daad689839d3c7986713">permutation</a></td></tr>
<tr class="memdesc:a6825de8bb886daad689839d3c7986713"><td class="mdescLeft">&#160;</td><td class="mdescRight">permutation of the variables alpha, gradient, etc.  <br /></td></tr>
<tr class="separator:a6825de8bb886daad689839d3c7986713"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9f1ae2df5eaaf432872ded870d8787d" id="r_aa9f1ae2df5eaaf432872ded870d8787d"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#aa9f1ae2df5eaaf432872ded870d8787d">boxMin</a></td></tr>
<tr class="memdesc:aa9f1ae2df5eaaf432872ded870d8787d"><td class="mdescLeft">&#160;</td><td class="mdescRight">component-wise lower bound  <br /></td></tr>
<tr class="separator:aa9f1ae2df5eaaf432872ded870d8787d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a469feeb215ab016a23c930d120071074" id="r_a469feeb215ab016a23c930d120071074"><td class="memItemLeft" align="right" valign="top">RealVector&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classshark_1_1_general_quadratic_problem.html#a469feeb215ab016a23c930d120071074">boxMax</a></td></tr>
<tr class="memdesc:a469feeb215ab016a23c930d120071074"><td class="mdescLeft">&#160;</td><td class="mdescRight">component-wise upper bound  <br /></td></tr>
<tr class="separator:a469feeb215ab016a23c930d120071074"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><div class="compoundTemplParams">template&lt;class MatrixT&gt;<br />
class shark::GeneralQuadraticProblem&lt; MatrixT &gt;</div><p>Quadratic Problem with only Box-Constraints Let K the kernel matrix, than the problem has the form. </p>
<p>\(max_\alpha - 1/2 \alpha^T K \alpha +  \alpha^Tv\) under constraints: \(l_i &lt;= \alpha_i &lt;= u_i\) </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00052">52</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>
</div><h2 class="groupheader">Member Typedef Documentation</h2>
<a id="adc77a7278f5f0f3352507ff106170222" name="adc77a7278f5f0f3352507ff106170222"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adc77a7278f5f0f3352507ff106170222">&#9670;&#160;</a></span>MatrixType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef MatrixT <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;<a class="el" href="_mc_svm_linear_8cpp.html#a88ab98d46276376a56c2a396842cd58e">::MatrixType</a></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00054">54</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<a id="a4d39a65d53e312e8f6670bca88acfcdd" name="a4d39a65d53e312e8f6670bca88acfcdd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4d39a65d53e312e8f6670bca88acfcdd">&#9670;&#160;</a></span>QpFloatType</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">typedef MatrixType::QpFloatType <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::QpFloatType</td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00055">55</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5fac3481c122b828c0fbdc1f0dd7ad58" name="a5fac3481c122b828c0fbdc1f0dd7ad58"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5fac3481c122b828c0fbdc1f0dd7ad58">&#9670;&#160;</a></span>GeneralQuadraticProblem() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::GeneralQuadraticProblem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>quadratic</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00058">58</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_general_quadratic_problem.html#a1beb985520dc9f49db3408e22918fb03">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a170d8bc7b59295225e50ef670c93d12b">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a6825de8bb886daad689839d3c7986713">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::permutation</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::quadratic</a>.</p>

</div>
</div>
<a id="aeeb68a46c6b9d19b029fba3b415e0c53" name="aeeb68a46c6b9d19b029fba3b415e0c53"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeeb68a46c6b9d19b029fba3b415e0c53">&#9670;&#160;</a></span>GeneralQuadraticProblem() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::GeneralQuadraticProblem </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a> &amp;&#160;</td>
          <td class="paramname"><em>quadratic</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; unsigned int &gt; const &amp;&#160;</td>
          <td class="paramname"><em>labels</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classshark_1_1_data.html">Data</a>&lt; double &gt; const &amp;&#160;</td>
          <td class="paramname"><em>weights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">RealVector const &amp;&#160;</td>
          <td class="paramname"><em>regularizers</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>constructor which initializes a C-SVM problem with weighted datapoints and different regularizers for every class </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00074">74</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_general_quadratic_problem.html#a469feeb215ab016a23c930d120071074">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMax</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#aa9f1ae2df5eaaf432872ded870d8787d">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMin</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a1beb985520dc9f49db3408e22918fb03">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a170d8bc7b59295225e50ef670c93d12b">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="group__shark__globals.html#ga0ea72a74a21d5ff59772516b83c4a58b">shark::Data&lt; Type &gt;::element()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a6238469347dc713767559ec056bba357">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="group__shark__globals.html#ga814e8b0028cc90dd2af69805e8f8a04d">shark::Data&lt; Type &gt;::numberOfElements()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a6825de8bb886daad689839d3c7986713">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::permutation</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::quadratic</a>, and <a class="el" href="_exception_8h.html#a42a6a50e4d06c00d60fbca5333f40768">SIZE_CHECK</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a170d8bc7b59295225e50ef670c93d12b" name="a170d8bc7b59295225e50ef670c93d12b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a170d8bc7b59295225e50ef670c93d12b">&#9670;&#160;</a></span>dimensions()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::size_t <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::dimensions </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00110">110</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::quadratic</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a5fac3481c122b828c0fbdc1f0dd7ad58">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>.</p>

</div>
</div>
<a id="a05d69430848ddcad3356bc5721f89847" name="a05d69430848ddcad3356bc5721f89847"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a05d69430848ddcad3356bc5721f89847">&#9670;&#160;</a></span>flipCoordinates()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::flipCoordinates </td>
          <td>(</td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>i</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::size_t&#160;</td>
          <td class="paramname"><em>j</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>exchange two variables via the permutation </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00115">115</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_general_quadratic_problem.html#a23c9f698d8e9fe751120469495bf06dc">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::alpha</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a469feeb215ab016a23c930d120071074">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMax</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#aa9f1ae2df5eaaf432872ded870d8787d">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMin</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a1beb985520dc9f49db3408e22918fb03">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::diagonal</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a6238469347dc713767559ec056bba357">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::linear</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a6825de8bb886daad689839d3c7986713">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::permutation</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab9f7c176af3174da94f5e3278da833ee">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::quadratic</a>.</p>

</div>
</div>
<a id="ab443ebce2edcc29998fdc12ad1e59ea5" name="ab443ebce2edcc29998fdc12ad1e59ea5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab443ebce2edcc29998fdc12ad1e59ea5">&#9670;&#160;</a></span>scaleBoxConstraints()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::scaleBoxConstraints </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>factor</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Scales all box constraints by a constant factor and adapts the solution by scaling it by the same factor. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00130">130</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">References <a class="el" href="classshark_1_1_general_quadratic_problem.html#a23c9f698d8e9fe751120469495bf06dc">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::alpha</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a469feeb215ab016a23c930d120071074">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMax</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aa9f1ae2df5eaaf432872ded870d8787d">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::boxMin</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a23c9f698d8e9fe751120469495bf06dc" name="a23c9f698d8e9fe751120469495bf06dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23c9f698d8e9fe751120469495bf06dc">&#9670;&#160;</a></span>alpha</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::alpha</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Solution candidate. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00143">143</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab443ebce2edcc29998fdc12ad1e59ea5">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::scaleBoxConstraints()</a>.</p>

</div>
</div>
<a id="a469feeb215ab016a23c930d120071074" name="a469feeb215ab016a23c930d120071074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a469feeb215ab016a23c930d120071074">&#9670;&#160;</a></span>boxMax</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::boxMax</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>component-wise upper bound </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00156">156</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab443ebce2edcc29998fdc12ad1e59ea5">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::scaleBoxConstraints()</a>.</p>

</div>
</div>
<a id="aa9f1ae2df5eaaf432872ded870d8787d" name="aa9f1ae2df5eaaf432872ded870d8787d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9f1ae2df5eaaf432872ded870d8787d">&#9670;&#160;</a></span>boxMin</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::boxMin</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>component-wise lower bound </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00153">153</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#ab443ebce2edcc29998fdc12ad1e59ea5">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::scaleBoxConstraints()</a>.</p>

</div>
</div>
<a id="a1beb985520dc9f49db3408e22918fb03" name="a1beb985520dc9f49db3408e22918fb03"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1beb985520dc9f49db3408e22918fb03">&#9670;&#160;</a></span>diagonal</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::diagonal</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>diagonal matrix entries The diagonal array is of fixed size and not subject to shrinking. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00147">147</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a5fac3481c122b828c0fbdc1f0dd7ad58">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>.</p>

</div>
</div>
<a id="a6238469347dc713767559ec056bba357" name="a6238469347dc713767559ec056bba357"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6238469347dc713767559ec056bba357">&#9670;&#160;</a></span>linear</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">RealVector <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::linear</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Linear part of the problem. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00140">140</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>.</p>

</div>
</div>
<a id="a6825de8bb886daad689839d3c7986713" name="a6825de8bb886daad689839d3c7986713"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6825de8bb886daad689839d3c7986713">&#9670;&#160;</a></span>permutation</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::size_t&gt; <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::permutation</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>permutation of the variables alpha, gradient, etc. </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00150">150</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a5fac3481c122b828c0fbdc1f0dd7ad58">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>.</p>

</div>
</div>
<a id="ab9f7c176af3174da94f5e3278da833ee" name="ab9f7c176af3174da94f5e3278da833ee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab9f7c176af3174da94f5e3278da833ee">&#9670;&#160;</a></span>quadratic</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class MatrixT &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classshark_1_1_general_quadratic_problem.html#adc77a7278f5f0f3352507ff106170222">MatrixType</a>&amp; <a class="el" href="classshark_1_1_general_quadratic_problem.html">shark::GeneralQuadraticProblem</a>&lt; MatrixT &gt;::quadratic</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>representation of the quadratic part of the objective function </p>

<p class="definition">Definition at line <a class="el" href="_qp_solver_8h_source.html#l00137">137</a> of file <a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a>.</p>

<p class="reference">Referenced by <a class="el" href="classshark_1_1_general_quadratic_problem.html#a170d8bc7b59295225e50ef670c93d12b">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::dimensions()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a05d69430848ddcad3356bc5721f89847">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::flipCoordinates()</a>, <a class="el" href="classshark_1_1_general_quadratic_problem.html#a5fac3481c122b828c0fbdc1f0dd7ad58">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>, and <a class="el" href="classshark_1_1_general_quadratic_problem.html#aeeb68a46c6b9d19b029fba3b415e0c53">shark::GeneralQuadraticProblem&lt; MatrixT &gt;::GeneralQuadraticProblem()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/shark/Algorithms/QP/<a class="el" href="_qp_solver_8h_source.html">QpSolver.h</a></li>
</ul>
</div><!-- contents -->
</div>
</body>
</html>
